package com.fsserver.facedetection.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 人脸检测结果
 * 
 * @author fsserver
 * @since 2024-01-01
 */
@Data
@ApiModel(description = "人脸检测结果")
public class FaceDetectionResult {

    @ApiModelProperty(value = "检测到的人脸数量", example = "2")
    private Integer faceCount;

    @ApiModelProperty(value = "人脸位置信息列表")
    private List<FaceRect> faces;

    @ApiModelProperty(value = "处理时间（毫秒）", example = "150")
    private Long processingTime;

    @ApiModelProperty(value = "图片宽度", example = "1920")
    private Integer imageWidth;

    @ApiModelProperty(value = "图片高度", example = "1080")
    private Integer imageHeight;

    @ApiModelProperty(value = "检测算法", example = "HAAR_CASCADE")
    private String algorithm;
} 